0ad73fc7fa59cd92d72ee97a0c291951118bef63,advanced/main/java/org/neo4j/index/impl/lucene/FullTxData.java,FullTxData,internalQuery,#Query#QueryContext#,141
Before Change
{
if ( this.directory == null )
{
return new Pair<Collection<Long>, TxData>( Collections.<Long>emptySet(), this );
}
try
{
Sort sorting = contextOrNull != null ? contextOrNull.sorting : null;
boolean prioritizeCorrectness = contextOrNull == null || !contextOrNull.tradeCorrectnessForSpeed;
Hits hits = new Hits( searcher( prioritizeCorrectness ), query, null, sorting, prioritizeCorrectness );
Collection<Long> result = new ArrayList<Long>();
for ( int i = 0; i < hits.length(); i++ )
{
result.add( Long.parseLong( hits.doc( i ).getField(
LuceneIndex.KEY_DOC_ID ).stringValue() ) );
}
return new Pair<Collection<Long>, TxData>( result, this );
}
catch ( IOException e )
{
After Change
{
if ( this.directory == null )
{
return Pair.<Collection<Long>, TxData>of( Collections.<Long>emptySet(), this );
}
try
{
Sort sorting = contextOrNull != null ? contextOrNull.sorting : null;
boolean prioritizeCorrectness = contextOrNull == null || !contextOrNull.tradeCorrectnessForSpeed;
Hits hits = new Hits( searcher( prioritizeCorrectness ), query, null, sorting, prioritizeCorrectness );
Collection<Long> result = new ArrayList<Long>();
for ( int i = 0; i < hits.length(); i++ )
{
result.add( Long.parseLong( hits.doc( i ).getField(
LuceneIndex.KEY_DOC_ID ).stringValue() ) );
}
return Pair.<Collection<Long>, TxData>of( result, this );
}
catch ( IOException e )
{